<?php
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
        public function run()
        {
            //生成一条数据，数组中为要生成的信息
            $admin = factory('App\User')->create([
                    'name' => 'gdc',
                    'email' => 'phpsix@126.com',
                    'password' => bcrypt('123456')
            ]);
            //生成三条数据，密码为123456，其他随机
            $users = factory('App\User',3)->create([
                    'password' => bcrypt('123456')
            ]);
        }
}